package util;

import java.util.TreeMap;

public class TreeMapDemo {
	public static void main(String[] args) {

		TreeMap<Integer, String> searchVolume = new TreeMap<Integer, String>();
		searchVolume.put(156, "abc");
		searchVolume.put(4951, "def");
		searchVolume.put(493, "ghi");
		searchVolume.put(7912, "criminal attorney");
		searchVolume.put(96, "pqr");
		searchVolume.put(52, "stu");
		searchVolume.put(156, "vwx");
		System.out.println(searchVolume.pollFirstEntry());
		System.out.println(searchVolume.pollFirstEntry());
	}
}
